$(document).ready(function(){
	initGrid({
		url:'getJson.json'
	});
	
	addSubmit();
	showEditModal('worktime');
	
});
function initGrid(options){
	
	var colModel = [
	                { label: '编号', name: 'id', key: true, fixed:true, width: 55, align:'center' },
	                { label: '上午上班时间', name: 'amInTime', index:"am_in_time", width: 150, editable: true, align:'center' },
	                { label: '上午下班时间', name: 'amOutTime', width: 150, align:'center' },
	                { label: '下午上班时间', name: 'pmInTime', width: 150, align:'center' },
	                { label:'下午下班时间', name: 'pmOutTime', width: 150, align:'center' },
	                { label:'操作', name: '', width: 85, fixed:true, formatter: customActions, align:'center' },
	            ];
	options.colModel = colModel;
	customGrid.init(options);
}

//增加及删除方法查看main.js

